Conversation
Main Tasks (Python app): - Add production-ready Dockerfile with best practices - Non-root user (appuser) - Specific base image version (python:3.13-slim) - Proper layer ordering for caching - Health check implementation - Create .dockerignore for optimized build context - Add Docker section to README.md with usage examples - Create comprehensive LAB02.md documentation - Push image to Docker Hub (ellilin/devops-info-service:v1.0.0) - Final image size: 208MB Bonus Task (Go app - Multi-stage build): - Implement multi-stage Dockerfile for Go application - Stage 1: Builder (golang:1.21-alpine) for compilation - Stage 2: Runtime (alpine:3.19) for minimal footprint - Static binary with stripped symbols (-ldflags='-s -w') - Create .dockerignore for Go - Build 31.6MB final image (91% smaller than single-stage) - Push to Docker Hub (ellilin/devops-info-service-go:v1.0.0) - Create detailed LAB02.md documentation explaining: - Multi-stage strategy and benefits - Size comparison analysis - Security implications - Technical explanation of each stage Security: - Both apps run as non-root user - Minimal base images for reduced attack surface - No build tools in production images - Proper health checks implemented
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.